package org.ithang;


public class Order {

	private String id;//订单号
	
	private String title;//产品名称
	
	private String number;//订单行号
	
	private String pid;//产品编码(PID)
	
	private int num;//下单数量
	
	private String unit;//单位
	
	private String address;//交付详细地址
	
	private String people;//交付联系人
	
	private String phone;//交付联系电话
	
	private String toDate;//约定交付日期
	
	private String verifyDate;//订单审批完成日期
	
	private String toAddress;//交付至 （仓库/门店/部门）
	
	private String orderNum;//采购主单号
	
	private String orderSubNum;//采购子单号

	
	
	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}



	public String getTitle() {
		return title;
	}



	public void setTitle(String title) {
		this.title = title;
	}



	public String getNumber() {
		return number;
	}



	public void setNumber(String number) {
		this.number = number;
	}



	public String getPid() {
		return pid;
	}



	public void setPid(String pid) {
		this.pid = pid;
	}



	public int getNum() {
		return num;
	}



	public void setNum(int num) {
		this.num = num;
	}



	public String getUnit() {
		return unit;
	}



	public void setUnit(String unit) {
		this.unit = unit;
	}



	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getPeople() {
		return people;
	}



	public void setPeople(String people) {
		this.people = people;
	}



	public String getPhone() {
		return phone;
	}



	public void setPhone(String phone) {
		this.phone = phone;
	}



	public String getToDate() {
		return toDate;
	}



	public void setToDate(String toDate) {
		this.toDate = toDate;
	}



	public String getVerifyDate() {
		return verifyDate;
	}



	public void setVerifyDate(String verifyDate) {
		this.verifyDate = verifyDate;
	}



	public String getToAddress() {
		return toAddress;
	}



	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}



	public String getOrderNum() {
		return orderNum;
	}



	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}



	public String getOrderSubNum() {
		return orderSubNum;
	}



	public void setOrderSubNum(String orderSubNum) {
		this.orderSubNum = orderSubNum;
	}



	public boolean isTuHu() {
		if(null!=title&&title.contains("黑色")) {
			return false;
		}
		return true;
	}

	

	@Override
	public String toString() {
		return "Order [id=" + id + ", title=" + title + ", number=" + number + ", pid=" + pid + ", num=" + num
				+ ", unit=" + unit + ", address=" + address + ", people=" + people + ", phone=" + phone + ", toDate="
				+ toDate + ", verifyDate=" + verifyDate + ", toAddress=" + toAddress + ", orderNum=" + orderNum
				+ ", orderSubNum=" + orderSubNum + "]";
	}
	
	
	
	
}
